package day13;

import java.io.*;
import java.util.Arrays;

public class iotest {
    public static void main(String[] args) {
        method();
        File file=new File("G:\\ready");
        File[] fs=file.listFiles();
//        System.out.println(Arrays.toString(file.listFiles()));
//        System.out.println(file.listFiles()[1]);
//        System.out.println(file.listFiles()[1].length());
        System.out.println(fs[3]);
        File file1=new File("D:\\ShadowsocksR-win-4.9.0\\ShadowsocksR-win-4.9.0");
        File[] fs2=file1.listFiles();
        System.out.println(Arrays.toString(fs2));

        System.out.println(fs2[6]);


    }

    private static void method() {
        try {
            InputStream in=new FileInputStream("G:\\ready\\1.txt");
            int b;
            while ((b=in.read())!=-1){
                System.out.println(b);
            }

        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
